package com.wisezone.workflow.dao;

import java.util.List;

import com.wisezone.common.dao.BaseDao;
import com.wisezone.workflow.bean.WfVariableInstance;
import com.wisezone.workflow.bean.form.WfVariableInstanceForm;
import com.wisezone.workflow.exception.WfDaoException;

/**
 * 变量实例接口
 * 
 * @author tss 2009-09-05
 * 
 */
public interface WfVariableInstanceDao extends BaseDao {

	/**
	 * 获得流程变量实例
	 * 
	 * @param name
	 * @param activityInstId
	 * @return
	 * @throws WfDaoException
	 */
	public WfVariableInstance getEntityByActivityInstId(String name,
			Long activityInstId) throws WfDaoException;

	/**
	 * 获得流程变量实例
	 * 
	 * @param name
	 * @param activityInstId
	 * @return
	 * @throws WfDaoException
	 */
	public WfVariableInstance getEntityByActivityId(String name, Long activityId)
			throws WfDaoException;

	/**
	 * 获得流程变量实例
	 * 
	 * @param name
	 * @param activityInstId
	 * @return
	 * @throws WfDaoException
	 */
	public WfVariableInstance getEntityByProcessDefId(String name,
			Long processDefId) throws WfDaoException;

	
	/**
	 * 获得流程变量实例
	 * 
	 * @param name
	 * @param processInstId
	 * @return
	 * @throws WfDaoException
	 */
	public WfVariableInstance getEntityByProcessInstId(String name,
			Long processInstId) throws WfDaoException;

}